<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>深低温数据管理</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		$(document).ready(function() {
			//$("#name").focus();
			$("#inputForm").validate({
				submitHandler: function(form){
					loading('正在提交，请稍等...');
					form.submit();
				},
				errorContainer: "#messageBox",
				errorPlacement: function(error, element) {
					$("#messageBox").text("输入有误，请先更正。");
					if (element.is(":checkbox")||element.is(":radio")||element.parent().is(".input-append")){
						error.appendTo(element.parent().parent());
					} else {
						error.insertAfter(element);
					}
				}
			});
		});
	</script>
</head>
<body>
	<ul class="nav nav-tabs">
		<li><a href="${ctx}/ccsendeepdata/sersorDeepData/">深低温数据列表</a></li>
		<li class="active"><a href="${ctx}/ccsendeepdata/sersorDeepData/form?id=${sersorDeepData.id}">深低温数据<shiro:hasPermission name="ccsendeepdata:sersorDeepData:edit">${not empty sersorDeepData.id?'修改':'添加'}</shiro:hasPermission><shiro:lacksPermission name="ccsendeepdata:sersorDeepData:edit">查看</shiro:lacksPermission></a></li>
	</ul><br/>
	<form:form id="inputForm" modelAttribute="sersorDeepData" action="${ctx}/ccsendeepdata/sersorDeepData/save" method="post" class="form-horizontal">
		<form:hidden path="id"/>
		<sys:message content="${message}"/>		
		<div class="control-group">
			<label class="control-label">深低温传感器MAC地址：</label>
			<div class="controls">
				<form:input path="sensorMac" htmlEscape="false" maxlength="50" class="input-xlarge required"/>
				<span class="help-inline"><font color="red">*</font> </span>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">无线网关记录该数据的时间：</label>
			<div class="controls">
				<input name="macTime" type="text" readonly="readonly" maxlength="20" class="input-medium Wdate "
					value="<fmt:formatDate value="${sersorDeepData.macTime}" pattern="yyyy-MM-dd HH:mm:ss"/>"
					onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',isShowClear:false});"/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">数据包含义: 03 (用于区分不同传设备的数据)：</label>
			<div class="controls">
				<form:input path="dataType" htmlEscape="false" maxlength="10" class="input-xlarge "/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">传感器传输到网关的时间：</label>
			<div class="controls">
				<input name="toggpTime" type="text" readonly="readonly" maxlength="20" class="input-medium Wdate "
					value="<fmt:formatDate value="${sersorDeepData.toggpTime}" pattern="yyyy-MM-dd HH:mm:ss"/>"
					onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',isShowClear:false});"/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">传感器采集数据时间：</label>
			<div class="controls">
				<form:input path="getTime" htmlEscape="false" maxlength="20" class="input-xlarge "/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">热电偶解析前温度数据(十六进制)：</label>
			<div class="controls">
				<form:input path="tempHex" htmlEscape="false" maxlength="20" class="input-xlarge "/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">热电偶解析后温度数据(10进制)：</label>
			<div class="controls">
				<form:input path="tempBcd" htmlEscape="false" maxlength="20" class="input-xlarge  number"/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">芯片解析前温度(16进制)：</label>
			<div class="controls">
				<form:input path="chiptempHex" htmlEscape="false" maxlength="20" class="input-xlarge "/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">芯片解析后温度(十进制)：</label>
			<div class="controls">
				<form:input path="chiptempBcd" htmlEscape="false" maxlength="20" class="input-xlarge  number"/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">当前设备(深低温传感器)电池电压解析前(16进制)数据：</label>
			<div class="controls">
				<form:input path="voltageHex" htmlEscape="false" maxlength="20" class="input-xlarge "/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">当前设备(深低温传感器)电池电压解析后(10进制)数据：</label>
			<div class="controls">
				<form:input path="voltageBcd" htmlEscape="false" maxlength="20" class="input-xlarge  number"/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">无线网关信号强度解析前(16进制)数据：</label>
			<div class="controls">
				<form:input path="ggprssiHex" htmlEscape="false" maxlength="20" class="input-xlarge "/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">无线网关信号强度解析后(10进制)数据：</label>
			<div class="controls">
				<form:input path="ggprssiBcd" htmlEscape="false" maxlength="20" class="input-xlarge  number"/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">当前设备(深低温传感器)信号强度解析前(16进制)数据：</label>
			<div class="controls">
				<form:input path="rssiHex" htmlEscape="false" maxlength="20" class="input-xlarge "/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">当前设备(深低温传感器)信号强度解析后(10进制)数据：</label>
			<div class="controls">
				<form:input path="rssiBcd" htmlEscape="false" maxlength="20" class="input-xlarge  number"/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">无线网关电池电压解析前(16进制)数据：</label>
			<div class="controls">
				<form:input path="ggpvoltageHex" htmlEscape="false" maxlength="20" class="input-xlarge "/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">无线网关电池电压解析后(10进制)数据：</label>
			<div class="controls">
				<form:input path="ggpvoltageBcd" htmlEscape="false" maxlength="20" class="input-xlarge  number"/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">正常温度范围上限：</label>
			<div class="controls">
				<form:input path="upperTemp" htmlEscape="false" maxlength="20" class="input-xlarge  number"/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">正常温度范围下限：</label>
			<div class="controls">
				<form:input path="lowerTemp" htmlEscape="false" maxlength="20" class="input-xlarge  number"/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">当前温度是否在正常范围内： 1:正常，2:不正常：</label>
			<div class="controls">
				<form:input path="tempIsnormal" htmlEscape="false" maxlength="40" class="input-xlarge "/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">备注：</label>
			<div class="controls">
				<form:textarea path="remarks" htmlEscape="false" rows="4" maxlength="255" class="input-xxlarge "/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">对应网关MAC(监测设备等)：</label>
			<div class="controls">
				<form:input path="gwMac" htmlEscape="false" maxlength="255" class="input-xlarge "/>
			</div>
		</div>
		<div class="form-actions">
			<shiro:hasPermission name="ccsendeepdata:sersorDeepData:edit"><input id="btnSubmit" class="btn btn-primary" type="submit" value="保 存"/>&nbsp;</shiro:hasPermission>
			<input id="btnCancel" class="btn" type="button" value="返 回" onclick="history.go(-1)"/>
		</div>
	</form:form>
</body>
</html>